<template functional>
      <div class="cover-row" show-play-button="true" image-size="512" >
        <div class="item">
          <div class="cover cover-hover" @click="props.playlistDetail(props.item.id)">
            <div class="cover-container">
              <div class="shade">
                <button class="play-button">
                  <svg-icon icon-class="play" class="svg-icon"></svg-icon>
                </button>
              </div>
              <img :src="props.item.coverImgUrl">
              <div class="shadow" :style="{'background-image':` url(${props.item.coverImgUrl})`}"></div>
            </div>
          </div>
          <div class="text">
            <div class="info">
              <span class="play-count">
                <svg-icon icon-class="play"  class="svg-icon"></svg-icon>{{(props.item.playCount/10000).toFixed(1)}}万
              </span>
            </div>
            <div class="title" style="font-size: 16px;">
              <a href="#/playlist/6686195802">{{props.item.name}}</a>
            </div>
          </div>
        </div>
      </div>
</template>

<style lang="scss" scoped>
.cover-row{
    display: grid;
}
.item {
    color: var(--color-text);
}
.cover {
    position: relative;
    transition: transform .3s;
}
.cover-container {
    position: relative;
}
.play-button , .shade {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shade {
    position: absolute;
    top: 0;
    height: calc(100% - 3px);
    width: 100%;
    background: transparent;
}
img {
    border-radius: .75em;
    width: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    aspect-ratio: 1/1;
}
.shadow {
    display: none;
    position: absolute;
    top: 18px;
    height: 100%;
    width: 100%;
    filter: blur(16px) opacity(.6);
    transform: scale(.92,.96);
    z-index: -1;
    background-size: cover;
    border-radius: .75em;
    aspect-ratio: 1/1;
}
.play-button {
    color: #fff;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background: hsla(0,0%,100%,.14);
    border: 1px solid hsla(0,0%,100%,.08);
    height: 22%;
    width: 22%;
    border-radius: 50%;
    cursor: default;
    transition: .2s;
}
.play-button , .shade {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity:0;
}
.cover-hover:hover .play-button,.shade {
  opacity: 1;
}
.cover-hover:hover .shadow{
  display:block;
}
.play-button:hover{
  background:rgba(255,255,255,.4);
}
button, select {
    font-family: inherit;
}
/deep/ .play-button .svg-icon {
    height: 44%;
    margin-left: 4px;
    font-size: 16px;
}
.svg-icon {
    fill: currentColor;
}
.play-count{
    font-weight: 600;
    opacity: .58;
    color: var(--color-text);
   .svg-icon{
      font-size:12px;
      margin-right: 3px;
      height: 8px;
      width: 8px;
   }
}
.item .text .info{
    font-size: 8px;
    opacity: .68;
    line-height: 18px;
    word-break: break-word;
}
a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.item .text .title{
    font-weight: 600;
    line-height: 20px;
    word-break: break-all;
}
.item .text{
    margin-top: 8px;
}
.item .text .info, .item .text .title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.title a:hover{
  text-decoration: underline;
}
button{
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 18px;
    font-weight: 600;
    background-color: var(--color-primary-bg);
    color: var(--color-primary);
    margin-right: 12px;
    transition: .2s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
button {
    background: none;
    border: none;
    cursor: pointer;
}
button, select {
    font-family: inherit;
}
/deep/ .svg-icon{
  vertical-align: -0.01em;
}
</style>
